/*
 * @Description: 
 * @Author: Liu Kunpeng
 * @Date: 2021-07-13 21:56:18
 */
import request from "@/utils/request"

export function getAllAdminApi(queryInfo){
    return request({
        url: '/admin/acl/user/getAllUsers',
        method: 'get',
        params: queryInfo
    })
}
export function addAdminApi(data){
    return request({
        url: '/admin/acl/user/addUser',
        method: 'post',
        data
    })
}
export function deleteAdminApi(id){
    return request({
        url: '/admin/acl/user/remove/' + id,
        method: 'delete',
    })
}

export function editAdminApi(data,roleId){
    return request({
        url: '/admin/acl/user/updateUser/' + roleId,
        method: 'put',
        data
    })
}
export function assignRoleApi(data){
    return request({
        url: '/admin/acl/user/assignRole',
        method: 'post',
        data
    })
}